<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 链入页面图标 -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <!-- 链入layui的css文件 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 链入自己的css -->
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- 头部盒子 -->
    <div class="header layui-main"></div>
    <!-- 中间登录和注册盒子 -->
    <div class="loginAndReg">
        <div class="header-box">
            <img src="/assets/images/login_title.png" alt="">
        </div>
        <!-- 功能一：登录 -->
        <div class="login-box">
            <form id="formLogin" class="layui-form form-pad" action="">
                <!-- 用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input" value="adminszh">
                </div>
                <!-- 用户密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|psd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input" value="adminszh">
                </div>
                <!-- 登录按钮 -->
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">登录</button>
                </div>
                <!-- 去注册链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去注册账号</a>
                </div>
            </form>
        </div>
        <!-- 功能二：注册 -->
        <div class="reg-box" hidden>
            <form id="formReg" class="layui-form form-pad" action="">
                <!-- 用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                    <!-- </div> -->
                </div>
                <!-- 用户密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|psd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 确认用户密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="repassword" required lay-verify="required|rePsd" placeholder="请再次输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 登录按钮 -->
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">注册</button>
                </div>
                <!-- 去注册链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去登录</a>
                </div>
            </form>
            <!-- </div> -->
        </div>
    </div>
    <!-- 导入jq文件，规范起见在body闭合标签上方导入 -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 导入layui的js文件 -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 导入axios文件 -->
    <script src="/assets/lib/axios.js"></script>
    <!-- 导入公共js文件 -->
    <script src="/assets/js/commen.js"></script>
    <!-- 导入自己的js文件 -->
    <script src="/assets/js/login.js"></script>
</body>

</html>